package com.foreknow.service;

import com.foreknow.model.Admin;

import java.sql.SQLException;

public interface AdminService {
    /**
     * 注册
     * @param admin
     * @return
     */
    public boolean register(Admin admin) throws SQLException;

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    public Admin login(String username,String password);
}
